From 8a08a47ea38cb06369283de2fab4f360038dfa87 Mon Sep 17 00:00:00 2001 From: "robertlipe@gmail.com" Date: Mon, 24 Feb 2014 17:49:44 +0000 Subject: [PATCH] Fix a leak in googledir that I introduced yesterday. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4765 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/googledir.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gpsbabel/googledir.cc b/gpsbabel/googledir.cc index 90b2d6171..06f8b260e 100644 --- a/gpsbabel/googledir.cc +++ b/gpsbabel/googledir.cc @@ -106,7 +106,9 @@ goog_poly_e(xg_string args, const QXmlStreamAttributes*) utf_string utf; utf.is_html = 1; utf.utfstring = instructions; - routehead->rte_desc = strip_html(&utf); + char *s = strip_html(&utf); + routehead->rte_desc = s; + xfree(s); instructions = QString(); } } -- 2.30.2